package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * 外部活动用户记录，注意大学信息反向查
 */
@Getter
@Setter
@Document(collection = "activity_user_record_new")
public class ActivityUserRecordNew extends EntityBase implements Serializable {

    private static final long serialVersionUID = -9094409800140584463L;
    @Transient
    private String activityName;
    @Indexed
    private String activityId;
    @Indexed
    private String taskBizType;
    private String userId;
    @Indexed
    private String mobile;
    private String name;
    private String universityName;
    private String universityId;
    /**
     * 工作量
     */
    private Integer q =0;

    private Integer invitationCount =0;
    //考试得分
    private Double score=0D;
    //证书等级
    private String caLevel;

    private String appId;
    @Indexed
    private String openId;

    private String platform;
    /**
     * 渠道,1:金数据,2:麦克表单
     */
    private String channel;

    private String unionId;

    /**
     * 省
     */
    private String province;
    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String area;

    /**
     * 详细地址
     */
    private String address;

    private String recieveName;

    private String recieveMobile;

    private Boolean mobileVerify = Boolean.FALSE;

    @Transient
   private List<CertificateActivityConfig> certificateActivityConfigList;

    @Transient
    private String caTime;

    /**
     * 是否电子证书 true
     */
    @Transient
    private Boolean digitalCa = Boolean.TRUE;


}
